package com.xcity.game.battle.pve;

import java.util.Arrays;

import com.alibaba.fastjson.annotation.JSONField;

public class PVEStarBoxInfo {
	@JSONField(name = "0")
	protected int[] gotNormalBoxState;//普通关每个page星数宝箱领取情况 第一个箱子 gotNormalBoxCount & 1 << 0 == 1领过
	@JSONField(name = "1")
	protected int[] gotHeroBoxState;//英雄关每个page星数宝箱领取情况 gotHeroBoxCount & 1 << 0 == 1领过

	public PVEStarBoxInfo(){
	}
	
	public PVEStarBoxInfo(int normalPageCount){
		gotNormalBoxState = new int[normalPageCount];
		gotHeroBoxState = new int[normalPageCount];
	}
	
	public int[] getGotNormalBoxState() {
		return gotNormalBoxState;
	}

	public void setGotNormalBoxState(int[] gotNormalBoxState) {
		this.gotNormalBoxState = gotNormalBoxState;
	}
	
	public int[] getGotHeroBoxState() {
		return gotHeroBoxState;
	}

	public void setGotHeroBoxState(int[] gotHeroBoxState) {
		this.gotHeroBoxState = gotHeroBoxState;
	}
	
	public void reset(int newCapacity) {
		this.gotNormalBoxState = Arrays.copyOf(this.gotNormalBoxState, newCapacity);
		this.gotHeroBoxState = Arrays.copyOf(this.gotHeroBoxState, newCapacity);
	}

}
